{% load admin_static %}{% load url from future %}<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
<title>{% block title %}{% endblock %}</title>
<meta name="viewport" content="width=device-width"/>
<link rel="stylesheet" type="text/css" href="{% block stylesheet %}{% static "admin/css/base.css" %}{% endblock %}" />

<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.1/css/bootstrap.min.css" />
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.1/css/font-awesome.css" rel="stylesheet"/>

{% block extrastyle %}{% endblock %}
<!--[if lte IE 7]><link rel="stylesheet" type="text/css" href="{% block stylesheet_ie %}{% static "admin/css/ie.css" %}{% endblock %}" /><![endif]-->
{% if LANGUAGE_BIDI %}<link rel="stylesheet" type="text/css" href="{% block stylesheet_rtl %}{% static "admin/css/rtl.css" %}{% endblock %}" />{% endif %}
<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";</script>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.1/js/bootstrap.min.js"></script>
		
{% block extrahead %}{% endblock %}
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE" />{% endblock %}
</head>
{% load i18n %}

<body class="{% if is_popup %}popup {% endif %}{% block bodyclass %}{% endblock %}">
	
{% if not is_popup %}
<!-- Header -->
<nav class="navbar navbar-inverse" role="navigation">
	<div class="navbar-header">
		<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
			<span class="sr-only">Toggle navigation</span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
			<span class="icon-bar"></span>
		</button>
		<a class="navbar-brand">{% block branding %}{% endblock %}</a>
	</div>
	{% if user.is_active and user.is_staff %}
	<div class="collapse navbar-collapse navbar-ex1-collapse">
		{% block userlinks %}
		<div class=" navbar-right">
			<ul class="nav navbar-nav">
				<p class="navbar-text" style="color:#FFF;">{% trans 'Welcome,' %}<strong>{% filter force_escape %}{% firstof user.first_name user.username %}{% endfilter %}</strong>.</p>
			</ul>	
			<ul class="nav navbar-nav">
				<li>
					<button type="button" class="btn btn-default navbar-btn" href="{% url 'admin:password_change' %}">{% trans 'Change password' %}</button>
					<button type="button" class="btn btn-default navbar-btn" href="{% url 'admin:logout' %}">{% trans 'Log out' %}</button>
				</li>
			</ul>
		</div>
		{% endblock %}
	</div>
	{% endif %}
	{% block nav-global %}{% endblock %}
</nav>
<!-- END Header -->
{% block breadcrumbs %}
<div class="breadcrumbs">
	<a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
	{% if title %} &rsaquo; {{ title }}{% endif %}
</div>
{% endblock %}
{% endif %}

<!-- Container -->
<div class="container ">
	<div class="row"><div class="col-xs-12">
	{% block messages %}
		{% if messages %}
		<ul class="messagelist">{% for message in messages %}
		  <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
		{% endfor %}</ul>
		{% endif %}
	{% endblock messages %}
	</div></div>
	<div class="row"><div class="col-xs-12">
		{% block pretitle %}{% endblock %}
		{% block content_title %}{% if title %}<h3>{{ title }}</h3>{% endif %}{% endblock %}
		{% block content %}
		{% block object-tools %}{% endblock %}
		{{ content }}
		{% endblock %}
		{% block sidebar %}{% endblock %}
	<br class="clear" />
	</div></div>
	<div class="row"><div class="col-xs-12">
    {% block footer %}<div id="footer"></div>{% endblock %}
	</div></div>
</div>
<!-- END Container -->

</body>
</html>
